﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="headerBar.ascx.cs" Inherits="VISS.Web.Frontend.Modules.General.HeaderBarControl" %>

<div id="header-bar">
    <div class="bg-bar">
        <div class="tab-panel" >
            <div class="tab tab-act"><%=PageOf %></div>
        </div>
        <div class="account-panel">
            <div class="shortcut-bar">
                <div class="shortcut-bar-left"></div>
                <div class="shortcut-bar-items">
                    <img src ="<%=AppSettings.ResourcesPath %>/images/shortcut-bar-images.jpg" onclick="window.parent.location = '<%=AppSettings.RootURL %>profile/images';" title="Quản lý hình ảnh cá nhân" />
                    <% if (HasNewMessages) { %>
                       <img src ="<%=AppSettings.ResourcesPath %>/images/shorcut-bar-new-messages.png" onclick="window.parent.location = '<%=AppSettings.RootURL %>profile/messages';" title="Bạn có <%=NumberOfNewMessages %> tin nhắn mới" />
                    <% }
                       else { %>
                       <img src ="<%=AppSettings.ResourcesPath %>/images/shortcut-bar-messages.jpg" onclick="window.parent.location = '<%=AppSettings.RootURL %>profile/messages';" title="Quản lý tin nhắn" />
                    <% } %>
                    <img src ="<%=AppSettings.ResourcesPath %>/images/shortcut-bar-password.jpg" id="change-password" title="Thay đổi mật khẩu" />
                    <img class="item-last" src="<%=AppSettings.ResourcesPath %>/images/shortcut-bar-logout.jpg" onclick="Logout();" title="Đăng xuất" />
                </div>
                <div class="shortcut-bar-right"></div>
            </div>
            <div class="name-panel">
              <span id="userLogin" style=" display:none"><%=UserKey %></span>
                <span>Chào</span>
                
                <span class="fullname"><a href="<%=AppSettings.RootURL%>profile?u=<%=UserKey %>" title="Trở về trang cá nhân"><span id="header-bar-FullName"><%=FullName %></span></a></span>
            </div>
        </div>
    </div>
</div>